﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="ConfigSponsor.aspx.vb" Inherits="RWN.ConfigSponsor" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary" TagPrefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">

	</script>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
		ตั้งค่าเปอร์เซ็นต์การจ่ายค่าตอบแทนสปอนเซอร์ L1-L9</div>
	<div>
		<hr />
	</div>
	<div>
        <table>
            <tr>
				<td width="100px">
					ชื่อโปรโมชั่น:
				</td>
				<td>
					<asp:TextBox ID="txtName" runat="server" Width="350px" MaxLength="500"></asp:TextBox>
				</td>
            </tr>
        </table>
        <table>
            <tr>
				<td width="100px">
					วันที่เริ่มต้น (From):</td>
				<td width="100px">
				    <asp:TextBox ID="StartDateFrom" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnStartDateFrom" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="StartDateFrom_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnStartDateFrom" TargetControlID="StartDateFrom">
			        </asp:CalendarExtender>			
                </td>
				<td width="100px" style="text-align: right">
					วันที่เริ่มต้น (To):</td>
				<td>
				    <asp:TextBox ID="StartDateTo" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnStartDateTo" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="StartDateTo_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnStartDateTo" TargetControlID="StartDateTo">
			        </asp:CalendarExtender>	
                </td>
            </tr>
            <tr>
				<td>
					วันที่สิ้นสุด (From):</td>
				<td>
				    <asp:TextBox ID="EndDateFrom" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnEndDateFrom" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="EndDateFrom_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnEndDateFrom" TargetControlID="EndDateFrom">
			        </asp:CalendarExtender>		
                </td>
				<td style="text-align: right">
					วันที่สิ้นสุด (To):</td>
				<td>
				    <asp:TextBox ID="EndDateTo" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnEndDateTo" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="EndDateTo_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnEndDateTo" TargetControlID="EndDateTo">
			        </asp:CalendarExtender>	
                </td>
            </tr>
        </table>
		<table style="width: 729px">
			<tr>
				<td>
		            <table>
			            <tr>
				            <td colspan="4">
					            <asp:Button ID="btnSearch" runat="server" Text="ค้นหา" 
						            ValidationGroup="valid" Width="80px" />
					            &nbsp;<asp:Button ID="btnReset" runat="server" Text="ตั้งค่าใหม่" 
                                    Width="80px" />
					            &nbsp;<asp:Button ID="btnAdd" runat="server" Text="เพิ่ม" Width="80px" />
				            </td>
			            </tr>
		            </table>
				</td>
			</tr>
			</table>
	</div>
	<div>
			<asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" PageSize="20" Width="100%" DataKeyNames="SPONSOR_ID">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
			    <asp:CommandField SelectText="แก้ไข" ShowSelectButton="True" HeaderText="แก้ไข">
                    <HeaderStyle Width="16%" />
				    <ItemStyle HorizontalAlign="Center" />
			    </asp:CommandField>
				<asp:BoundField DataField="SPONSOR_NAME" HeaderText="ชื่ีอโปรโมชั่น" >
				    <HeaderStyle Width="40%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="SPONSOR_START_DATE" HeaderText="วันที่เริ่มต้น" DataFormatString="{0:dd/MM/yyyy}" >
                    <HeaderStyle Width="22%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="SPONSOR_END_DATE" HeaderText="วันที่สิ้นสุด" DataFormatString="{0:dd/MM/yyyy}" >
                    <HeaderStyle Width="22%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
	</div>
	</asp:Content>
